package common.manager.keymanager {
	/**
	 * This class is used to represent a key on the keyboard. 
	 */
	public class KeyCode {
		//STATIC
		public static const VK_1:uint = 49;
		public static const VK_2:uint = 50;
		public static const VK_3:uint = 51;
		public static const VK_4:uint = 52;
		public static const VK_5:uint = 53;
		public static const VK_6:uint = 54;
		public static const VK_7:uint = 55;
		public static const VK_8:uint = 56;
		public static const VK_9:uint = 57;
		public static const VK_0:uint = 48;
		
		public static const VK_A:uint = 65;
		public static const VK_B:uint = 66;
		public static const VK_C:uint = 67;
		public static const VK_D:uint = 68;
		public static const VK_E:uint = 69;
		public static const VK_F:uint = 70;
		public static const VK_G:uint = 71;
		public static const VK_H:uint = 72;
		public static const VK_I:uint = 73;
		public static const VK_J:uint = 74;
		public static const VK_K:uint = 75;
		public static const VK_L:uint = 76;
		public static const VK_M:uint = 77;
		public static const VK_N:uint = 78;
		public static const VK_O:uint = 79;
		public static const VK_P:uint = 80;
		public static const VK_Q:uint = 81;
		public static const VK_R:uint = 82;
		public static const VK_S:uint = 83;
		public static const VK_T:uint = 84;
		public static const VK_U:uint = 85;
		public static const VK_V:uint = 86;
		public static const VK_W:uint = 87;
		public static const VK_X:uint = 88;
		public static const VK_Y:uint = 89;
		public static const VK_Z:uint = 90;
		
		public static const VK_F1:uint = 112;
		public static const VK_F2:uint = 113;
		public static const VK_F3:uint = 114;
		public static const VK_F4:uint = 115;
		public static const VK_F5:uint = 116;
		public static const VK_F6:uint = 117;
		public static const VK_F7:uint = 118;
		public static const VK_F8:uint = 119;
		public static const VK_F9:uint = 120;
		public static const VK_F10:uint = 121;
		public static const VK_F11:uint = 122;
		public static const VK_F12:uint = 123;
		public static const VK_F13:uint = 124;
		public static const VK_F14:uint = 125;
		public static const VK_F15:uint = 126;
		
		
		/* numpad */
		public static const VK_NUMPAD_0:uint = 96;
		public static const VK_NUMPAD_1:uint = 97;
		public static const VK_NUMPAD_2:uint = 98;
		public static const VK_NUMPAD_3:uint = 99;
		public static const VK_NUMPAD_4:uint = 100;
		public static const VK_NUMPAD_5:uint = 101;
		public static const VK_NUMPAD_6:uint = 102;
		public static const VK_NUMPAD_7:uint = 103;
		public static const VK_NUMPAD_8:uint = 104;
		public static const VK_NUMPAD_9:uint = 105;
		public static const VK_NUMPAD_MULTIPLY:uint = 106;//*
		public static const VK_NUMPAD_ADD:uint = 107;//+
		public static const VK_NUMPAD_ENTER:uint = 108;//enter
		public static const VK_NUMPAD_SUBTRACT:uint = 109;//-
		public static const VK_NUMPAD_DECIMAL:uint = 110;//.
		public static const VK_NUMPAD_DIVIDE:uint = 111;///
		
		public static const VK_BACKSPACE:uint = 8;//backspace
		public static const VK_TAB:uint = 9;//tab
		public static const VK_ENTER:uint = 13;//main ENTER
		public static const VK_SHIFT:uint = 16;//shift
		public static const VK_CONTROL:uint = 17;//ctrl
		public static const VK_ESCAPE:uint = 27;//esc
		public static const VK_SPACE:uint = 32;//space
		
		public static const VK_CAPS_LOCK:uint = 20;//caps lock
		public static const VK_NUM_LOCK:uint = 144;//num lock
		public static const VK_SCROLL_LOCK:uint = 145;//scroll lock
		
		public static const VK_PAUSE:uint = 19;//pause / break
		public static const VK_PAGE_UP:uint = 33;//page up
		public static const VK_PAGE_DOWN:uint = 34;//page down
		public static const VK_END:uint = 35;//end
		public static const VK_HOME:uint = 36;//home
		public static const VK_INSERT:uint = 45;//insert
		public static const VK_DELETE:uint = 46;//delete
		
		public static const VK_LEFT:uint = 37;//left arrow
		public static const VK_UP:uint = 38;//up arrow
		public static const VK_RIGHT:uint = 39;//right arrow
		public static const VK_DOWN:uint = 40;//down arrow
		
		public static const VK_WINDOWS:uint = 91;//windows
		public static const VK_MENU:uint = 93;//menu
		//
		private var keyId:int;
		private var isDown:Boolean;
		public function KeyCode(keyId:int) {
			this.keyId = keyId;
			setIsDown(false);
		}
		public function setIsDown(isDown:Boolean):void {
			this.isDown = isDown;
		}
		public function getIsDown():Boolean {
			return isDown;
		}
		public function getKeyId():int {
			return keyId;
		}
		
	}
	
}
